Auto merge of #2584 - alexcrichton:auth-more, r=brson
authorbors <bors@rust-lang.org>
Mon, 18 Apr 2016 04:53:11 +0000 (21:53 -0700)
committerbors <bors@rust-lang.org>
Mon, 18 Apr 2016 04:53:11 +0000 (21:53 -0700)
commitb6b6d0b212c2efe69d09129f9031318f1ecdf8da
tree947f23cc8645ef76a5256e8e40f4e47c0e4e744d
parent31e7d5a1357f227eb0a40a186f2b1d6e1a49cdb1
parent537f7185422e8839986ae2ec29a341009b48e418
Auto merge of #2584 - alexcrichton:auth-more, r=brson

Correctly attempt multiple usernames with libgit2

This commit corrects the logic for attempting multiple usernames with libgit2.
There is a restriction that for each authentication seession you can only
authenticate with one ssh username, but we were attempting multiple as part of
the same sesssion. Instead restart authentication whenever we try a new username.

Closes #2399